﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;

namespace DesktopTest.Utility
{
    internal class ConsoleWriter :
        TextWriter
    {
        private Form form;

        public ConsoleWriter(Form form)
        {
            this.form = form;
        }

        public override void WriteLine(string s)
        {
            MessageBox.Show(s);
        }

        public override Encoding Encoding
        {
            get
            {
                return Encoding.ASCII;
            }
        }
    }
}
